﻿namespace GenricTypes;

public class NumbersFilter
{
    public List<int> FilterBy(Func<int,bool> predicate, List<int> numbers)
    {
        var result = new List<int>();
        foreach (var number in numbers)
        {
            if (predicate(number))
            {
                result.Add(number);
            }
        }
   
        return result;
    }

   
}